package com.mayikt.zuul.mapper.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
* (MeiteBlacklist) 实体类
*
* @author zhangxun
* @since 2020-05-25
*/
@Data
@TableName(value = "meite_blacklist")
public class MeiteBlacklist implements Serializable {
    private static final long serialVersionUID=1L;
    /*** 主键id*/
    @TableId(type = IdType.AUTO)
    private Integer id;

    /*** ip地址*/
    @TableField("ip_address")
    private String ipAddress;

    /*** 限制类型 1:白名单 2:黑名单*/
    @TableField("restriction_type")
    private Integer restrictionType;

    /*** 是否可用*/
    @TableField("availability")
    private Integer availability;

    /*** 乐观锁*/
    @TableField("revision")
    private Integer revision;

    /*** 创建时间*/
    @TableField("create_time")
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /*** 更新时间*/
    @TableField("update_time")
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

}